package com.im.pojo;

import com.im.annotation.FlagValidator;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("好友申请实体类")
public class ImApply {
    @NotBlank(message = "发送方id为空")
    @ApiModelProperty(value = "发送方id")
    private String send_id;

    @NotBlank(message = "接收方id为空")
    @ApiModelProperty(value = "接受方id")
    private String receive_id;

    @FlagValidator(value = {"0", "1"})
    @ApiModelProperty(value = "是否同意, 0->未同意, 1->同意")
    private Integer agree;
}
